package org.jeecg.modules.api.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import org.jeecg.modules.music.entity.MusUser;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class CommentDto {

    private String id;

    private String userUid;

    private String toUserUid;

    private String content;

    private String targetUid;

    /**
     * 回复某条评论的uid
     */
    private String toUid;

    private String source;

    private Integer commentType;

    private Integer type;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private MusUser user;

    @TableField(exist = false)
    private List<CommentDto> beReplied;
}
